<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>PaleGem: Inc/PaleGem.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PaleGem
   &#160;<span id="projectnumber">0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f93dfce691d792349f1c14ede440e2e6.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PaleGem.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="pg_log_8h_source.html">pgLog.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="pg_event_manager_8h_source.html">pgEventManager.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="pg_input_event_manager_8h_source.html">pgInputEventManager.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="pg_timer_8h_source.html">pgTimer.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_i_pale_gem_framework_8h_source.html">IPaleGemFramework.h</a>&quot;</code><br/>
<code>#include &quot;d3d11.h&quot;</code><br/>
<code>#include &quot;D3DX11.h&quot;</code><br/>
<code>#include &quot;DxErr.h&quot;</code><br/>
<code>#include &quot;direct.h&quot;</code><br/>
</div>
<p><a href="_pale_gem_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_game_info.html">SGameInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpg_pale_gem_framework.html">pgPaleGemFramework</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab5e0a0a7e1c934d91f3c922b909c07e7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a>&#160;&#160;&#160;<a class="el" href="pg_object_8h.html#ac09cdca63e03669b91e49bdb97045adc">__declspec</a>(dllimport)</td></tr>
<tr class="separator:ab5e0a0a7e1c934d91f3c922b909c07e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6fb7c93cc64c766efa72355b1d52f5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#ab6fb7c93cc64c766efa72355b1d52f5c">PG_IS_USING_TESTAPP</a></td></tr>
<tr class="separator:ab6fb7c93cc64c766efa72355b1d52f5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08ec37a8c99d747fb60fa15bc28678b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#af08ec37a8c99d747fb60fa15bc28678b">_CRT_SECURE_NO_WARNINGS</a></td></tr>
<tr class="separator:af08ec37a8c99d747fb60fa15bc28678b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cb49a9455c325a58eb3991dc207290c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a4cb49a9455c325a58eb3991dc207290c">PG_SAFE_DELETE</a>(x)&#160;&#160;&#160;{if ((x)) { delete(x); x = NULL;}}</td></tr>
<tr class="memdesc:a4cb49a9455c325a58eb3991dc207290c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees memory and sets pointer to NULL.  <a href="#a4cb49a9455c325a58eb3991dc207290c">More...</a><br/></td></tr>
<tr class="separator:a4cb49a9455c325a58eb3991dc207290c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab61b278b653f0041f9d01b65e9567397"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#ab61b278b653f0041f9d01b65e9567397">PG_ERROR</a>(pg_error)&#160;&#160;&#160;{<a class="el" href="_pale_gem_8h.html#a4c8e4dbb630a55d8cbb6f998e7fe2114">g_PG_pPaleGemFramework</a>-&gt;HandleException(pg_error);}</td></tr>
<tr class="separator:ab61b278b653f0041f9d01b65e9567397"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad01b212831fc8376080bd9e050918052"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#ad01b212831fc8376080bd9e050918052">PG_SAFE_RELEASE</a>(x)&#160;&#160;&#160;{if(x) {x-&gt;Release(); x = NULL;}}</td></tr>
<tr class="separator:ad01b212831fc8376080bd9e050918052"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab678d1b4e123c13f53c37f48abbc9766"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#ab678d1b4e123c13f53c37f48abbc9766">PG_SAFE_DELETE_ARRAY</a>(x)&#160;&#160;&#160;{if (x) { delete[] (x); x = NULL;}}</td></tr>
<tr class="separator:ab678d1b4e123c13f53c37f48abbc9766"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bd16b6d7f3abe464a80f712f4ce52f5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a0bd16b6d7f3abe464a80f712f4ce52f5">PGSPEC_NEEDED_HARDDISK_SPACE</a>&#160;&#160;&#160;1024000000</td></tr>
<tr class="separator:a0bd16b6d7f3abe464a80f712f4ce52f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9716ac6c28aa9b109e163ad56095e4ee"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a9716ac6c28aa9b109e163ad56095e4ee">g_PG_pSGameInfo</a>&#160;&#160;&#160;<a class="el" href="class_t_singleton.html#ad34b50d44153d55f27468a8e89a7c169">SGameInfo::Get</a>()</td></tr>
<tr class="separator:a9716ac6c28aa9b109e163ad56095e4ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c8e4dbb630a55d8cbb6f998e7fe2114"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a4c8e4dbb630a55d8cbb6f998e7fe2114">g_PG_pPaleGemFramework</a>&#160;&#160;&#160;<a class="el" href="class_t_singleton.html#ad34b50d44153d55f27468a8e89a7c169">pgPaleGemFramework::Get</a>()</td></tr>
<tr class="separator:a4c8e4dbb630a55d8cbb6f998e7fe2114"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2c20b2e152f63a351745b5281bcf5eab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a2c20b2e152f63a351745b5281bcf5eab">ClearAllObjects</a> ()</td></tr>
<tr class="separator:a2c20b2e152f63a351745b5281bcf5eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0fb0f309402ad5a904aee76eb52c78"><td class="memItemLeft" align="right" valign="top">LRESULT CALLBACK&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#add0fb0f309402ad5a904aee76eb52c78">PGWindowProcedure</a> (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)</td></tr>
<tr class="separator:add0fb0f309402ad5a904aee76eb52c78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74de8f031b41ddfff9dfaa25feb73799"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_pale_gem_8h.html#a74de8f031b41ddfff9dfaa25feb73799">MyTestFunc</a> ()</td></tr>
<tr class="separator:a74de8f031b41ddfff9dfaa25feb73799"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="af08ec37a8c99d747fb60fa15bc28678b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _CRT_SECURE_NO_WARNINGS</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4c8e4dbb630a55d8cbb6f998e7fe2114"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define g_PG_pPaleGemFramework&#160;&#160;&#160;<a class="el" href="class_t_singleton.html#ad34b50d44153d55f27468a8e89a7c169">pgPaleGemFramework::Get</a>()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9716ac6c28aa9b109e163ad56095e4ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define g_PG_pSGameInfo&#160;&#160;&#160;<a class="el" href="class_t_singleton.html#ad34b50d44153d55f27468a8e89a7c169">SGameInfo::Get</a>()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab5e0a0a7e1c934d91f3c922b909c07e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PALEGEM_API&#160;&#160;&#160;<a class="el" href="pg_object_8h.html#ac09cdca63e03669b91e49bdb97045adc">__declspec</a>(dllimport)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab61b278b653f0041f9d01b65e9567397"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_i_pale_gem_framework_8h.html#a11415b43ebb41a1fc4aa64954609c347">PG_ERROR</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">pg_error</td><td>)</td>
          <td>&#160;&#160;&#160;{<a class="el" href="_pale_gem_8h.html#a4c8e4dbb630a55d8cbb6f998e7fe2114">g_PG_pPaleGemFramework</a>-&gt;HandleException(pg_error);}</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab6fb7c93cc64c766efa72355b1d52f5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PG_IS_USING_TESTAPP</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4cb49a9455c325a58eb3991dc207290c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PG_SAFE_DELETE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{if ((x)) { delete(x); x = NULL;}}</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Frees memory and sets pointer to NULL. </p>

</div>
</div>
<a class="anchor" id="ab678d1b4e123c13f53c37f48abbc9766"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PG_SAFE_DELETE_ARRAY</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{if (x) { delete[] (x); x = NULL;}}</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad01b212831fc8376080bd9e050918052"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PG_SAFE_RELEASE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{if(x) {x-&gt;Release(); x = NULL;}}</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0bd16b6d7f3abe464a80f712f4ce52f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PGSPEC_NEEDED_HARDDISK_SPACE&#160;&#160;&#160;1024000000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a2c20b2e152f63a351745b5281bcf5eab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> void ClearAllObjects </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a74de8f031b41ddfff9dfaa25feb73799"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> void MyTestFunc </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="add0fb0f309402ad5a904aee76eb52c78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LRESULT CALLBACK PGWindowProcedure </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hWnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WPARAM&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPARAM&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 1 2013 11:55:07 for PaleGem by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
